import { IPSAppViewEngine } from './ipsapp-view-engine';
import { IPSUIEngineParam } from '../../view/ipsuiengine-param';
import { PSModelObjectImpl } from '../../psmodel-object-impl';

export class PSAppDEViewEngineImplBase extends PSModelObjectImpl implements IPSAppViewEngine {
  get codeName(): string {
    return this.M.codeName;
  }

  get dynaModelFilePath(): string {
    return this.M.dynaModelFilePath;
  }

  get engineCat(): string {
    return this.M.engineCat;
  }

  get engineType(): string {
    return this.M.engineType;
  }

  get memo(): string {
    return this.M.memo;
  }

  get name(): string {
    return this.M.name;
  }

  protected psuiengineparams: IPSUIEngineParam[] | null = null;

  getPSUIEngineParams(): IPSUIEngineParam[] | null {
    if (this.psuiengineparams == null) {
      this.psuiengineparams = this.fillChildListModel(this.M.getPSUIEngineParams, 'view.IPSUIEngineParam') as IPSUIEngineParam[];
    }
    return this.psuiengineparams;
  }

  get psUIEngineParams(): IPSUIEngineParam[] | null {
    return this.getPSUIEngineParams();
  }

  findPSUIEngineParam(objKey: any): IPSUIEngineParam | null {
    return this.getPSModel5('view.IPSUIEngineParam', this.getPSUIEngineParams(), objKey) as IPSUIEngineParam;
  }

  get userCat(): string {
    return this.M.userCat;
  }

  get userTag(): string {
    return this.M.userTag;
  }

  get userTag2(): string {
    return this.M.userTag2;
  }

  get userTag3(): string {
    return this.M.userTag3;
  }

  get userTag4(): string {
    return this.M.userTag4;
  }
}
